package edu.hwadee.BEIS.entity;
// default package

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.alibaba.fastjson.JSON;

/**
 * SchoolBasicInfor entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "school_basic_infor", catalog = "beis")

public class SchoolBasicInfor implements java.io.Serializable {

	// Fields

	private String schoolId;
	private String belongId;
	private String schoolName;
	private String schoolEnglishname;
	private String schoolAddress;
	private String principalName;
	private String principalPhone;
	private Integer type;

	// Constructors

	/** default constructor */
	public SchoolBasicInfor() {
	}

	public SchoolBasicInfor(String schoolId) {
		this.schoolId = schoolId;
		this.principalName = null;
		this.principalPhone = null;
		this.type = null;
	}

	/** minimal constructor */
	public SchoolBasicInfor(String schoolId, String principalName, String principalPhone, Integer type) {
		this.schoolId = schoolId;
		this.principalName = principalName;
		this.principalPhone = principalPhone;
		this.type = type;
	}

	// Property accessors
	@Id

	@Column(name = "school_id", unique = true, nullable = false, length = 5)

	public String getSchoolId() {
		return this.schoolId;
	}

	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}

	

	@Column(name = "principal_name", nullable = false, length = 10)

	public String getPrincipalName() {
		return this.principalName;
	}

	public void setPrincipalName(String principalName) {
		this.principalName = principalName;
	}

	@Column(name = "principal_phone", nullable = false, length = 11)

	public String getPrincipalPhone() {
		return this.principalPhone;
	}

	public void setPrincipalPhone(String principalPhone) {
		this.principalPhone = principalPhone;
	}

	@Column(name = "type", nullable = false)

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "school_name", nullable = false, length = 20)

	public String getSchoolName() {
		return this.schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	@Column(name = "school_englishname", nullable = false, length = 50)

	public String getSchoolEnglishname() {
		return this.schoolEnglishname;
	}

	public void setSchoolEnglishname(String schoolEnglishname) {
		this.schoolEnglishname = schoolEnglishname;
	}

	@Column(name = "school_address", nullable = false, length = 50)

	public String getSchoolAddress() {
		return this.schoolAddress;
	}

	public void setSchoolAddress(String schoolAddress) {
		this.schoolAddress = schoolAddress;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

	@Column(name = "belong_id", length = 5)
	public String getBelongId() {
		return belongId;
	}

	public void setBelongId(String belongId) {
		this.belongId = belongId;
	}

}